﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RetailWidget.ascx.cs" Inherits="NewRetailWidget.RetailWidget" %>

<style type="text/css">
     div.widget img {vertical-align: baseline; padding-bottom: 0px;}
     div.widget a img {width: 65px; margin-right: 5px;}
     div.widget dl {list-style-position: outside;}
     div.widget br {display: none;}
     div.widget td {vertical-align: top;}
     div.widget {width:247px; height:226px; overflow:auto; padding: 2px; border: 1px solid #000000;}
     div.widget table {width:226px; margin: 1px; border-collapse:collapse;}
</style>
<div class="widget">
    <dl>
        <dt>
            Amazon > Best Sellers > <asp:Label ID="lblHeader1" runat="server" Text='' />
        </dt>
        <asp:DataList ID="amazon" runat="server">
            <ItemTemplate>
                <dt>
                    <table>
                      <tr>
                        <td colspan="2">
                            <asp:LinkButton ID="lnkTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>' PostBackUrl='<%# DataBinder.Eval(Container.DataItem, "Url")%>' />
                        </td>
                      </tr>
                      <tr>
                        <td>
                            <asp:LinkButton ID="lnkImage" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Image")%>' PostBackUrl='<%# DataBinder.Eval(Container.DataItem, "Url")%>' />
                        </td>
                        <td>
                            <asp:Label ID="lblSummary" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Summary")%>' />
                        </td>
                      </tr>
                    </table>
                </dt>
            </ItemTemplate>
        </asp:DataList>
        <dt>
            eBay > <asp:Label ID="lblHeader2" runat="server" Text='' />
        </dt>
        <asp:DataList ID="ebay" runat="server">
            <ItemTemplate>
                <dt>
                    <table>
                      <tr>
                        <td colspan="2">
                            <asp:LinkButton ID="lnkTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>' PostBackUrl='<%# DataBinder.Eval(Container.DataItem, "Url")%>' />
                        </td>
                      </tr>
                      <tr>
                        <td rowspan="3">
                            <asp:LinkButton ID="lnkImage" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Image")%>' PostBackUrl='<%# DataBinder.Eval(Container.DataItem, "Url")%>' />
                        </td>
                        <td>
                            <asp:Label ID="lblPrice" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Price")%>' />
                        </td>
                      </tr>
                      <tr>
                        <td>
                            <asp:Label ID="lblEnd" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "End")%>' />
                        </td>
                      </tr>
                      <tr>
                        <td>
                            <asp:Label ID="lblBuy" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Buy")%>' />
                        </td>
                      </tr>
                    </table>
                </dt>
            </ItemTemplate>
        </asp:DataList>
    </dl>
</div>
